﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.IdentityModel.Tokens.Jwt;
using System.Security.Claims;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.IdentityModel.Tokens;
using SX.BaseService.API.Base;
using SX.BaseService.Service.Interface;
using SX.Core;
using SX.Core.Attributes;
using SX.Core.Auth;

namespace SXFramWork.API.Controllers.Admin
{
    [Description("身份认证授权")]
    public class AuthController : BaseController
    {
        private readonly IAuthService _service;
        private readonly ICache _cache;
        private ILoginInfo _loginInfo;
        public AuthController(IAuthService authService,ILoginInfo loginInfo,ICache cache)
        {
            _cache = cache;
            _loginInfo = loginInfo;
            _service = authService;
        }            
   
        [HttpGet]
        [Common]
        [Description("获取认证信息")]
        public Task<IApiResult> GetAuthInfo()
        {
            return _service.GetAuthInfo();
        }
        
       
    }
}